<?php


namespace App\Routes;


use Base\RouteInterface;
use FastRoute\RouteCollector;

class Mp2Route implements RouteInterface
{
    public static function handle(RouteCollector &$route)
    {
        $route->addGroup('/mp2', function (RouteCollector $route) {
            $route->addGroup('/moment', function (RouteCollector $route) {
                $route->get('/getTopicList', 'Mp2/Moment/getTopicList');
                $route->post('/sendMoment', 'Mp2/Moment/sendMoment');
                $route->get('/getMomentList', 'Mp2/Moment/getMomentList');
                $route->get('/getMomentDetail', 'Mp2/Moment/getMomentDetail');
                $route->get('/getCommentList', 'Mp2/Moment/getCommentList');
                $route->post('/sendComment', 'Mp2/Moment/sendComment');
                $route->post('/delMoment', 'Mp2/Moment/delMoment');
                $route->post('/delComment', 'Mp2/Moment/delComment');
            });
        });
    }
}
